﻿@page
@model _17bang.Pages.Message.MineModel
@{
}
<form method="post" style="padding-top:120px">
    <div class="row" style="margin-bottom:20px;">
        <div class="col-6">
            @*<button type="submit" class="btn btn-primary"><span class="fa fa-check-circle"></span>已读</button>*@
            <button type="submit" class="btn btn-default"><span class="fa fa-times-circle"></span> 删除</button>
        </div>
        <input type="hidden" name="submit">
    </div>
    <div class="row">
        <div class="col-1"></div>
        <div class="col-1">时间</div>
        <div class="col-2">
            <a asp-page="/">订阅种类 <span class="fa fa-cog"></span></a>
        </div>
        <div class="col-8">内容</div>
    </div>
    <hr />
    @for (int i = 0; i < Model.Messages.Count; i++)
    {
        <div class="row">
            <div class="col-1">
                <input asp-for="@Model.Messages[i].Selected" />
            </div>
            <div class="col-1">
                <small>
                    <a title="@Model.Messages[i].CreateTime"><span class="fa fa-calendar"></span></a>
                </small>
            </div>
            <div class="col-2">
                <span><span class="fa fa-times-circle"></span>@Model.Messages[i].Kind</span>
            </div>
            <div class="col-8">
                <span>@Model.Messages[i].Content</span>
            </div>
            <input type="hidden" asp-for="@Model.Messages[i].Id" /> @*id要声明才能传到后台*@
        </div>
        <hr />
    }
</form>
